// import { useState } from 'react'
// import { Button } from 'antd' //按需引入即可
import {useRoutes } from 'react-router-dom'

import indexRouter from './router/index'


function App() {
  const elementRoute = useRoutes(indexRouter)
  return (
    <div>

      {/* 类似vue的 router-view */}
      {elementRoute}
    </div>
  )
}

export default App
